package com.hc.commView;

import java.awt.BasicStroke;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;

import com.hc.util.ImageUtil;

public class UpImagePanel extends JPanel{
	private int ange;
	public UpImagePanel(int ange) {
		this.ange = ange;
		setPreferredSize(new Dimension(20, 20));
	}
	
	@Override
	protected void paintComponent(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;

		g2d.rotate(Math.toRadians(ange),10,10);
		
		g2d.drawImage(ImageUtil.up,0,0,20,20,null) ;
	
		g.dispose();
	}
}
